import Vue from 'vue'
import Router from 'vue-router'
import home from './views/home'
import login from './views/login'

const landinList = () => import('./views/content/landinList')
const createLandin = () => import('./views/content/createLandin')
const editLandin = () => import('./views/content/editLandin')
const deduction = () => import('./views/content/deduction')
const Edit = () => import('./views/Edit')

Vue.use(Router)

export default new Router({
	mode: 'hash',
	base: process.env.BASE_URL,
	routes: [{
			path: '/',
			name: 'login',
			component: login,
		},
		{
			path: '/content',
			name: 'home',
			component: home,
			children: [
				{
					path: '/landinList',
					name: 'landinList',
					component: landinList
				}, {
					path: '/createLandin',
					name: 'createLandin',
					component: createLandin
				},{
					path: '/editLandin',
					name: 'editLandin',
					component: editLandin
				},{
					path: '/deduction',
					name: 'deduction',
					component: deduction
				},{
					path: '/Edit',
					name: 'Edit',
					component: Edit
				}
			]
		},
		{
			path: '/login',
			name: 'login',
			component: login
		}


	]
})
